package com.ym.soso.domain.param;

import com.ym.common.constant.BeanCovert;
import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.ym.soso.domain.entity.OrgCommentRecordEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * 评价记录对象 org_comment_record
 *
 * @author ym
 * @date 2020-08-20
 */
@ApiModel("评价记录-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrgCommentRecordUpdateParam extends BeanCovert<OrgCommentRecordEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("关联ID")
    private Long relId;

    @ApiModelProperty("关联类型 (01-医院 02-中医堂 03-药店 04-养老 05-体检 06-鼻炎馆 07-综合门诊 08-心理咨询)")
    @Size(max = 2, message = "关联类型 长度超过{max}", groups = {Add.class, Update.class})
    private String relType;

    @ApiModelProperty("评价内容")
    @Size(max = 2000, message = "评价内容长度超过{max}", groups = {Add.class, Update.class})
    private String content;

    @ApiModelProperty("评价星数")
    private Integer starNum;

    @ApiModelProperty("评价人")
    private Long comontSb;

    @ApiModelProperty("图片")
    @Size(max = 500, message = "图片长度超过{max}", groups = {Add.class, Update.class})
    private String pic;

    @ApiModelProperty("是否匿名(01-是 00-否)")
    @Size(max = 2, message = "是否匿名长度超过{max}", groups = {Add.class, Update.class})
    private String anony;

    @ApiModelProperty("审核人")
    private Long auditSb;

    @ApiModelProperty("审核时间")
    private Date auditTime;

    @ApiModelProperty("审核状态 (01- 待审核 02-审核通过 03-审核未通过)")
    @Size(max = 2, message = "审核状态 长度超过{max}", groups = {Add.class, Update.class})
    private String auditState;

    @ApiModelProperty("审核说明")
    @Size(max = 64, message = "审核说明长度超过{max}", groups = {Add.class, Update.class})
    private String auditRemark;

}
